﻿<Page
    x:Class="Jenkins.SettingsFlyout"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Jenkins"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignWidth="500">

    <Border BorderThickness="1">
        <Grid Background="White" VerticalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="80"/>
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            
            <Grid Background="Black" Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <StackPanel Orientation="Horizontal" Grid.Column="0" Margin="40, 32, 17, 13">
                    <Button Margin="0,10,0,0" Style="{StaticResource SettingsBackButtonStyle}" />
                    <TextBlock Margin="10,0,0,0" FontFamily="Segoe UI" FontWeight="SemiLight" FontSize="24.6667" Text="Jenkins Settings" Foreground="White" />
                </StackPanel>
            </Grid>
            
            <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1">
                <Grid Margin="40,40,40,40" VerticalAlignment="Top" Grid.RowSpan="2">
                    <StackPanel>
                        <!-- URL -->
                        <StackPanel>
                            <TextBlock FontWeight="Bold" Text="Jenkins URL" TextWrapping="Wrap" Style="{StaticResource BasicTextStyle}" HorizontalAlignment="Left" Foreground="#DE000000" />
                            <TextBlock Text="http://www.mydomain.com/jenkins/" TextWrapping="Wrap" Style="{StaticResource BasicTextStyle}" HorizontalAlignment="Left" Foreground="#FF999999" />
                            <TextBox Text="" AcceptsReturn="False" InputScope="Url" TextWrapping="Wrap" Margin="5, 5, 5, 5" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </StackPanel>

                        <!-- Login -->
                        <StackPanel Margin="0, 20, 0, 0">
                            <TextBlock FontWeight="Bold" Text="Jenkins Account" TextWrapping="Wrap" Style="{StaticResource BasicTextStyle}" HorizontalAlignment="Left" Foreground="#DE000000" />
                            <TextBlock Text="Username" TextWrapping="Wrap" Style="{StaticResource BasicTextStyle}" HorizontalAlignment="Left" Foreground="#FF999999" />
                            <TextBox Text="" AcceptsReturn="False" TextWrapping="Wrap" Margin="5, 5, 5, 5" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                            <TextBlock Text="Password" TextWrapping="Wrap" Style="{StaticResource BasicTextStyle}" HorizontalAlignment="Left" Foreground="#FF999999" />
                            <PasswordBox Margin="5, 5, 5, 5" HorizontalAlignment="Stretch" VerticalAlignment="Top" />
                        </StackPanel>
                        <StackPanel>
                            <Button Content="Login and save" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="White" Background="Black" />
                        </StackPanel>
                    </StackPanel>
                </Grid>
            </ScrollViewer>
        </Grid>
    </Border>
</Page>